import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './assets/css/gloable.css'
import './assets/fonts/iconfont.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from 'axios'
import Vant from 'vant';
import 'vant/lib/index.css';
import {useRouter} from 'vue-router'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
// axios.defaults.baseURL = 'http://180.76.56.45:8214/'
axios.defaults.baseURL = 'http://39.108.141.233:8214/'
app.config.globalProperties.$http = axios
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use(router)
app.use(Vant)
app.use(ElementPlus)
app.mount('#app')
